import Index from '@/views/index/index.vue'
import Login from '@/views/login/login.vue'
import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/login' },
    {
      path: '/login',
      component: Login,
    },
    {
      path: '/index',
      component: Index,
    },
  ],
})

export default router
